class TiposController < ApplicationController
  active_scaffold :tipo do |config|
    config.label = "Tipos de Envio"

    config.create.columns = [:sigla]
    config.update.columns = [:sigla]
    config.list.columns = [:sigla]

    config.theme = :blue
    config.columns[:sigla].description = "NOME"

    config.columns[:sigla].label = "NOME"

    config.list.per_page = Setting.new.qtd_porpagina

    config.create.link.label = "NOVO"
    config.search.link.label = "BUSCA"
    config.update.link.label = "E"
    config.show.link.label = "S"
    config.delete.link.label = "D"
    config.delete.link.confirm = "Apagar?"

    config.actions.exclude :search
  end
end
